<%--
  Created by IntelliJ IDEA.
  User: Zach
  Date: 3/11/12
  Time: 1:58 PM
  To change this template use File | Settings | File Templates.
--%>

<%@ page import="bidsanity.Bid; bidsanity.Listing" contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <meta name="layout" content="main"/>
    <title>- Customer Details</title>
</head>

<body>
<h1><g:message code="default.edit.label" args="[entityName]"/></h1>
<g:if test="${flash.message}">
    <div class="message" role="status">${flash.message}</div>
</g:if>
<g:hasErrors bean="${customerInstance}">
    <ul class="errors" role="alert">
        <g:eachError bean="${customerInstance}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                    error="${error}"/></li>
        </g:eachError>
    </ul>
</g:hasErrors>
<g:form method="post">
    <g:hiddenField name="id" value="${customerInstance?.id}"/>
    <g:hiddenField name="version" value="${customerInstance?.version}"/>
    <fieldset class="form">
        <g:render template="form"/>
    </fieldset>
    <fieldset class="buttons">
        <g:actionSubmit class="save" action="update"
                        value="${message(code: 'default.button.update.label', default: 'Update')}"/>
        <g:actionSubmit class="delete" action="delete"
                        value="${message(code: 'default.button.delete.label', default: 'Delete')}" formnovalidate=""
                        onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/>
        <g:actionSubmit value="Cancel" action="show" />
    </fieldset>
</g:form>
</body>
</html>